<%--
  Created by IntelliJ IDEA.
  User: 星星在唱歌
  Date: 2022/2/25
  Time: 9:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加景点信息</title>
</head>
<body>
    <div style="width: 800px; margin: 0 auto;text-align: center;">
        <h1>添加景点信息</h1>
        <form action="${pageContext.request.contextPath}/main?cmd=register"  method="post" onsubmit="return check()">
            <table border="1" cellspacing="0" cellpadding="8" style="margin: 0 auto;">
                <tr>
                    <td>景点介绍</td>
                    <td><textarea name="introduce" cols="50" rows="10" id="address"></textarea></td>
                </tr>
                <tr>
                    <td>发布时间</td>
                    <td><input type="text" name="pubTime"></td>
                </tr>
                <tr>
                    <td>票价</td>
                    <td><input type="text" name="price"></td>
                </tr>
                <tr>
                    <td>城市</td>
                    <td>
                        <select name="cityId">
                            <c:forEach items="${city}" var="c">
                                <option value="${c.cityId}"> ${c.cityName} </option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <input type="submit" name="submit" value="添加信息">
                        <input type="reset" value="重置信息">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
